package io.mft.web.adapter.api.builder;

import java.util.Map;

import io.mft.commons.function.RequestValue;
import io.mft.runtime.function.ApiFunctionResponse;
import io.mft.web.adapter.api.response.DSWebApiResponse;
import io.mft.web.adapter.api.response.WebApiResponse;

public class DSWebExecuteApiProtocolBuilder extends WebExecuteApiProtocolBuilder{

	@Override
	public RequestValue buildRequest(Map<String, Object> parameter) {
		RequestValue requestValue = new RequestValue();
		requestValue.putAll(parameter);
		return requestValue;
	}

	@Override
	public WebApiResponse buildWebApiResponse() {
		WebApiResponse response=new DSWebApiResponse();
		return response;
	}

	@Override
	public WebApiResponse buildWebApiResponse(ApiFunctionResponse response) {
		WebApiResponse webApiResponse=new DSWebApiResponse(response);
		return webApiResponse;
	}

}
